home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16783 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: pangea.Stanford.EDU!karish
  2. From: karish@pangea.Stanford.EDU (Chuck Karish)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: 12 Apr 1996 02:08:36 GMT
  6. Organization: Mindcraft, Inc.
  7. Message-ID: <4kkdv4$ik4@nntp.Stanford.EDU>
  8. References: <JSA.96Feb16135027@organon.com> <dewar.828757752@schonberg> <828825929snz@genesis.demon.co.uk> <dewar.828846122@schonberg>
  9. NNTP-Posting-Host: pangea.stanford.edu
  10.  
  11. In article <dewar.828846122@schonberg>, Robert Dewar <dewar@cs.nyu.edu> wrote:
  12. >"Well, POSIX is IEEE standard 1003. I don't think SPEC1170 and XPG are
  13. >national/international standards but are something you have to conform to
  14. >if you want to call your OS UNIX(tm).
  15. >"
  16. >
  17. >This is plain wrong! There are lots of unixes out there that call themselves
  18. >UNIX and do not conform exactly to SPEC1170.
  19.  
  20. Not wrong, just incomplete.  The trade mark owner (X/Open) has
  21. stated the requirements for use of the word.  This includes,
  22. for new systems, demonstration of conformance to the requirements
  23. of the XPG4 UNIX profile, a formalization of Spec 1170.  There
  24. are special arrangements for vendors met the requirements for use of
  25. the UNIX name under agreements with previous owners of the trade
  26. mark (AT&T, USL, Novell).
  27.  
  28. >Consider for example, also answering your question about ANSI being
  29. >a misleadng guide to portability, the return type of sprintf. I don't
  30. >have SPEC1170 on hand, but it is a good guess that it is ANSI compliant
  31. >here (return type int), but BSD heritage unices (like SunOS) return
  32. >char *.
  33.  
  34. The list of interesting UNIX-like porting targets that don't
  35. support both Standard C and POSIX.1 gets shorter every year.
  36. I don't feel guilty at all calling code portable even though
  37. I know it would not compile on a Version 7 UNIX system.
  38.  
  39. >"have to conform to"
  40. >
  41. >and prey who enforces this rule?
  42.  
  43. The market, ultimately.
  44. --
  45.  
  46.     Chuck Karish          karish@mindcraft.com
  47.     (415) 323-9000 x117   karish@pangea.stanford.edu
  48.